﻿#ifndef CODEMANAGER_H
#define CODEMANAGER_H

#include <QVector>

#include "memento.h"

typedef QVector<Memento*> MementoVector;

class CodeManager
{
public:
    CodeManager();

    void commit(Memento* memento);

    Memento* checkout(int index);

    void codeLog();

private:
    MementoVector m_mementoVector;
};

#endif // CODEMANAGER_H
